package com.neutech.shop.service;

import com.neutech.shop.entity.ConditionVO;
import com.neutech.shop.entity.Product;
import org.springframework.web.multipart.commons.CommonsMultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @author Neuedu-远哥
 * @version 1.0
 * @date 2021/9/29 10:40
 */
public interface ProductService {
    List<Product> findAll();

    void insert(Product product, CommonsMultipartFile file, HttpServletRequest request);

    List<Product> selectByKeywords(String keywords);

    List<Product> searchProductComplex(ConditionVO conditionVO);

    List<Product> lastedProduct(int startIndex);

    Product selectById(Integer id);
}
